//
//  messageHeaderView.m
//  ShouYi
//
//  Created by yrapp on 16/2/23.
//  Copyright © 2016年 yurui. All rights reserved.
//

#import "messageHeaderView.h"

@implementation messageHeaderView


- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
 
        _backButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _backButton.frame = CGRectMake(12, 20, 30, 40);
        [_backButton setImage:[UIImage imageNamed:@"icon_fh"] forState:(UIControlStateNormal)];
        _backButton.imageEdgeInsets = UIEdgeInsetsMake(10, 8, 10, 8);
        [self addSubview:_backButton];
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake((kWidth - 100) / 2, 22, 100, 30)];
        _titleLabel.text = @"通知";
        _titleLabel.textColor = [UIColor whiteColor];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:20];
        [self addSubview:_titleLabel];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
